<template>
	<view class="page index">
		<view class="form">
			<common-input title="备忘标题" :disabled="true" :require="false" v-model="noteForm.title" :borderBottom="false"></common-input>
			<common-input title="备忘日期" :disabled="true" :require="false" v-model="noteForm.date"></common-input>
			<view class="text">
				<view class="title">
					备忘内容
				</view>
				<textarea v-model="noteForm.content" disabled="true" placeholder="请输入备忘内容" placeholder-class="place"></textarea>
			</view>
			<view class="file">
				<view class="title">
					附件
				</view>
				<view class="file-list">
					<view class="item">
						XXXXXXXX.jpg
					</view>
				</view>
			</view>
		</view>
		<view class="footer">
			<button class="cencle">删除备忘</button>
			<button class="edit">编辑</button>
		</view>
	</view>
</template>

<script>
	import commonInput from "@/components/commonInput.vue"
	import updateFile from "@/components/updateFile.vue"
	export default{
		data() {
			return{
				noteForm:{
					title:'XXXXXXX备忘事项',
					date:'2024-6-13',
					content:'别忘了'
				},
				file:[]
			}
		},
		components: {
			commonInput,
			updateFile
		},
		methods:{
		}
	}
</script>

<style lang="scss" scoped>
	@import "@/common/style/customicons.scss";
	.index{
		padding: 24rpx 0;
		@include flex-c;
		.form{
			flex: 1 0 0;
			.text{
				border-bottom: 4rpx #e5e5e5 solid;
				padding: 12rpx 30rpx;
				.title{
					font-size: 28rpx;
					color: #101010;
					padding: 0 0 16rpx;
				}
				textarea{
					font-size: 28rpx;
					color: #909090;
					height: 125rpx;
				}
				.place{
					font-size: 28rpx;
					color: #909090;
				}
			}
			.file{
				padding: 12rpx 30rpx;
				.title{
					font-size: 28rpx;
					color: #101010;
					padding: 0 0 20rpx;
				}
				.file-list{
					.item{
						background-color: #F3F6F9;
						height: 52rpx;
						text-align: center;
						line-height: 52rpx;
						color: #101010;
						font-size: 28rpx;border-radius: 6rpx;
						margin: 0 0 20rpx;
					}
				}
			}
		}
		.footer{
			flex: 0 0 auto;
			padding: 24rpx 30rpx;
			@include flex-r-between-start;
			button{
				@include button;
				color: #fff;
				height: 60rpx;
				line-height: 60rpx;
				font-size: 28rpx;
			}
			.cencle{
				width: 35%;
				background-color: #BEBEBE;
			}
			.edit{
				width: 60%;
				background-color: #198AFA;
			}
		}
	}
</style>